EthernetConfigManager

public class EthernetConfigManager extends AbstractManager<Service>

Provides abilities to configure ethernet interfaces on the device.

Functions

Link copied to clipboard
public void clearProxySettings(String iface)
This will remove all proxy settings applied via setStaticProxy or setProxyAutoConfigUrl.
Link copied to clipboard
Disables any configured authentication for the interface
Link copied to clipboard
public void enableDhcp(String iface)
This will enable DHCP and remove config applied via setStaticHostConfig
Link copied to clipboard
public void enableEapTlsAuthentication(String iface, String eapIdentity, String eapCACertAlias, String eapClientCertAlias)
Configures EAP-TLS authentication for the interface
Link copied to clipboard
Returns names of available ethernet interfaces on the device.
Link copied to clipboard
Obtains config in effect for the given interface.
Link copied to clipboard
public static EthernetConfigManager getInstance(Context context)
Returns an instance of EthernetConfigManager for the given context
Link copied to clipboard
public void setConfiguration(String iface, EthernetConfig config)
Applies a given EthernetConfig to the given interface.
Link copied to clipboard
public void setProxyAutoConfigUrl(String iface, Uri pacUrl)
Sets a proxy auto-config URL.
Link copied to clipboard
public void setStaticHostConfig(String iface, String ipAddress, int prefixLength, String gatewayAddress, List<String> dnsServers)
Applies the given IP configuration.
Link copied to clipboard
public void setStaticProxy(String iface, String host, int port, List<String> excludedHosts)
Applies the given direct proxy config.